import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: "/",
    // 重定向
    redirect: { name: 'timer' }
  },
  {
    path: '/timer',
    name: 'timer',
    component: () => import('@/pages/timer/index.vue')
  },
  {
    path: '/trans',
    name: 'trans',
    component: () => import('@/pages/transaction/index.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
